package com.flickx.po;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * @author flick on 2017/5/8.
 * @version 1.0
 */
@Entity
public class User extends AbstractEntity{
    private String name;
    @JsonIgnore
    @OneToMany(mappedBy="user",fetch= FetchType.LAZY)
    private List<Orders> orderList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Orders> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<Orders> orderList) {
        this.orderList = orderList;
    }
}
